home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
prg_basi
/
n_b-v200.zip
/
NB02
/
DMO
/
MTCHFILE.DMO
< prev
next >
Wrap
Text File
|
1996-03-11
|
2KB
|
46 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME MTCHFILE.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB02.INC"
COLOR 7,0
CLS
? "┌──────────────────────────────────────────────────────────────────────────
? "│ fFileMatch%( Mask$, FileName$ )
? "├────────────────────────────────────────────────────────────────────────────
? "│ fFileMatch returns TRUE/FALSE if the FileName would be a match by if you
? "│ were working in DOS.
? "└─────────────────────────────────────────────────────────────────────────────
?
FileName$ = "README.DOC"
PRINT "Testing: "; FileName$
PRINT
Mask$ = "*.*" : GOSUB DoIt
Mask$ = "*.???" : GOSUB DoIt
Mask$ = "README.*" : GOSUB DoIt
Mask$ = "D*.*" : GOSUB DoIt
END
DOIT:
PRINT "Mask$ = "; Mask$; TAB(21); fFileMatch%( Mask$, FileName$ )
RETURN